<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

	<ui:composition 
	  xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      template="/templates/templateLayout.xhtml">
      
      <ui:define name="conteudo">      

      	
<link rel="stylesheet" type="text/css" href="./estilos.css"/>
 
 <h:form id="formUsuarioEditar" prependId="false" > 
	<p:panel id="idPanelEditarUsuario" style="margin-bottom:30px;">  	
	<f:facet name="header">
		<h:outputText value="Editar Usuario" styleClass="outputTextTitulo" />
	</f:facet>
    	<p:growl id="growl" style="font-size:14px;"/>  
        <h:panelGrid columns="2"  style="margin-top:20px;">
        	<p:outputLabel value="Código:" styleClass="outputLabel" />
			<p:inputText value="#{projetoBean.usuario.idUsuario}" styleClass="inputId" disabled="true" /> 
			<p:outputLabel value="Nome:" styleClass="outputLabel" />
			<p:inputText value="#{projetoBean.usuario.nome}" styleClass="inputDescricao" disabled="true"/>
			<p:outputLabel value="Perfil:" styleClass="outpuLabel" rendered="#{projetoBean.renderedAdministrador()}"/>
   			<p:selectOneMenu id="stringStatus" styleClass="outpuLabel" value="#{projetoBean.perfilAgenda}" label="Status do Projeto"  
   							     panelStyle="width:210px" disabled="#{projetoBean.disablePerfil()}" rendered="#{projetoBean.renderedAdministrador()}">  
  				<f:selectItems value="#{projetoBean.arrayPerfilAgenda}" />  
			</p:selectOneMenu>
			<p:outputLabel value="Email:" styleClass="outputLabel" />
			<p:inputText value="#{projetoBean.usuario.email}" styleClass="inputDescricao" disabled="true" /> 
			<p:outputLabel value="Senha:" styleClass="outputLabel" />
			<p:password value="#{projetoBean.usuario.senha}" maxlength="20" styleClass="inputDescricao"  /> 
			<p:outputLabel value="Confirmar Senha" styleClass="outputLabel" />
			<p:password value="#{projetoBean.password}" maxlength="20" styleClass="inputDescricao"  /> 
		</h:panelGrid>


	</p:panel>
	<p:commandButton value="Salvar" action="#{projetoBean.saveUsuarioAdmin}" update="idPanelEditarUsuario" style="margin-right:20px; margin-left:10px;" />  
   	<p:commandButton value="Cancelar/Voltar" action="#{projetoBean.voltarUsuarioComum}" style="margin-right:20px;" immediate="true"/>
 
</h:form>  	
</ui:define>
</ui:composition>
